[new release] ocaml-lsp-server, lsp and jsonrpc (1.15.0-5.0) #22879
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
LSP Server for OCaml
CHANGES:
Features
Add support for OCaml 5.0
Enable semantic highlighting
support by default (feature(semantic-hl): enable semantic highlighting by default ocaml-lsp#933)
Support connecting over pipes and socket. Pipes on Windows aren't yet
supported (feature: channel argument support ocaml-lsp#946)
More
about communication channels in LSP specification.
Re-enable
ocamlformat-rpc
for formatting code snippets (but not files andnot on Windows) (re-enable ocamlformat-rpc ocaml-lsp#920, disable ofmt rpc for files ocaml-lsp#939)
One needs to have installed either
ocamlformat
package version > 0.21.0 or,otherwise,
ocamlformat-rpc
package. Note that previouslyocamlformat-rpc
came in a standalone OPAM package, but since
ocamlformat
version > 0.21.0,it comes within
ocamlformat
package.Add custom
ocamllsp/hoverExtended
request (Add a new custom command ocamllsp/hoverExtended with support for variable verbosity ocaml-lsp#561)
Support utf-8 position encoding clients (feature: allow utf8 encoding ocaml-lsp#919)
More about position encoding in LSP specification.
Show unwrapped module alias types on hovering over module names. This is due
to upgrading to merlin 4.7 and using merlin's
verbosity=smart
by default(chore: update merlin ocaml-lsp#942)
Fixes
Respect the client's completion item resolve and preSelect capabilities
(fix: respect completion item resolve capability ocaml-lsp#925, fix: respect item preSelect capability ocaml-lsp#936)
Disable polling for dune's watch mode on Windows and OCaml 4.14.0 (Mitigate ocaml/ocaml#11737 (windows-only) ocaml-lsp#935)
Fix semantic highlighting of "long identifiers," e.g.,
Foo.Bar.x
(fix(semantic-hl): properly highlight longidents with spaces ocaml-lsp#932)Fix syncing of document contents: